//
//  enumConfig.h
//  PPDL
//
//  Created by 王洋 on 2019/7/27.
//  Copyright © 2019 王洋. All rights reserved.
//

#ifndef enumConfig_h
#define enumConfig_h

typedef NS_ENUM(unsigned long, PP_JumpType) {
    //Type 与ID跳转
    PP_JumpType_Normal             = 0,
    //类名跳转
    PP_JumpType_ClassName          = 1
};

//跳转类型
typedef NS_ENUM(NSInteger, CommentClickType) {
    //基础页面跳转配置
    // unknow   不跳转
    CommentClickType_UnKnow                      =   0,
    //首页
    CommentClickType_Home                        =   1,
    //拍品
    CommentClickType_Auction                     =   2,
    //商城
    CommentClickType_Shop                    =   3,
    //收益
    CommentClickType_Income                      =   4,
    //我的
    CommentClickType_Mine                        =   5,
    // H5
    CommentClickType_HtmlPage                    =   6,
    // 打电话
    CommentClickType_PhoneCall                   =   7,
    
    //特殊详情配置
    
    // ------------------------订单消息相关------------------------
    //订单消息
    CommentClickType_OrderMsg                    =   100,
    
    // ------------------------系统消息相关------------------------
    //系统消息
    CommentClickType_SystemMsg                   =   200,
    
    
    // ------------------------活动相关------------------------
    //优惠券列表
    CommentClickType_CouponList                  =   300,
    
    
    
    // ------------------------各类详情------------------------
    //商品详情
    CommentClickType_GoodsDetail                 =   1000,
    //拍场中
    CommentClickType_InAuctionDetail             =   1001,
    //订单详情
    CommentClickType_OrderDetail                 =   1002,
};

//订单列表类型    一个订单列表类型经常会包含多个订单详情类型
typedef NS_ENUM(unsigned long, ETTOrderListType) {
    //全部
    ETTOrderListType_All        = 0,
    //待付款
    ETTOrderListType_UnPay      = 1,
    //待发货
    ETTOrderListType_UnSend     = 2,
    //待收货
    ETTOrderListType_UnReceive  = 3,
    //已完成
    ETTOrderListType_Finish     = 4,
    //失效
    ETTOrderListType_Invalid    = 9
};

//订单详情类型    一个订单列表类型经常会包含多个订单详情类型
typedef NS_ENUM(unsigned long, ETTOrderDetailType) {
    //全部
    ETTOrderDetailType_All        = 0,
    //待付款
    ETTOrderDetailType_UnPay      = 1,
    //待发货
    ETTOrderDetailType_UnSend     = 2,
    //待收货
    ETTOrderDetailType_UnReceive  = 3,
    //已完成
    ETTOrderDetailType_Finish     = 4,
    //失效
    ETTOrderDetailType_Invalid    = 9
};

//订单操作
typedef NS_ENUM(unsigned long, ETTOrderActionType) {
    //无事件
    ETTOrderActionType_None                           = 0,
    //支付事件
    ETTOrderActionType_Payment                        = 1,
    //提醒发货
    ETTOrderActionType_RemindShipment                 = 2,
    //确认收货
    ETTOrderActionType_ConfirmationReceipt            = 3,
    //删除订单
    ETTOrderActionType_delete                         = 4
};

//授权类型
typedef NS_ENUM(unsigned long, ETTAuthorizationType) {
    
    ETTAuthorization_None                            = -1,
    //支付宝预授权
    ETTAuthorization_AlipayAuth                      =  0,
    //通过押金授权
    ETTAuthorization_DepositAuth                     =  1
};

//收益类型
typedef NS_ENUM(unsigned long, ETTIncomeType) {
    
    ETTIncomeType_None                            =  0,
    //钱币
    ETTIncomeType_Coin                            =  1,
    //红包
    ETTIncomeType_RedPaper                        =  2
};

//分享a类型
typedef NS_ENUM(NSInteger, PP_ShareType) {
    //微信好友
    CommentShareWechat                      =   1,
    //微信朋友圈
    CommentShareWechatCycle                 =   2,
    //QQ好友
    CommentShareQQ                          =   4,
    //QQ控件
    CommentShareQZone                       =   5,
};

typedef NS_ENUM(NSInteger, PP_UserVerifyType) {  //实名认证状态
    //审核状态未知
    Comment_Verify_Unknow                    =   0,
    //通过审核
    Comment_Verify_Pass                      =   1,
    //重新审核
    Comment_Verify_Return                    =   2,
    //审核失败
    Comment_Verify_Failed                    =   3
};

typedef NS_ENUM (NSUInteger, enumNoresultStatus) {
    kTTViewStateNetError        = 0,
    kTTViewStateNoData          = 1,
    kTTViewStateTimeOut         = 2,
    kTTViewStateContactsError   = 3,
    kTTViewStateSearchEmpty     = 4,
    kTTViewStateAddressEmpty    = 5,
};

#pragma mark 商品详情类型
typedef NS_ENUM(unsigned long, PPGoodDetailType) {
    //拍场的商品详情
    PPPaiingGoodsDetail = 0,
    //商城里面的商品详情
    PPMallPaiGoodsDetail = 1,
    //一拍必得商品详情
    PPMallPaiMustGetGoodsDetail = 30,
};

#pragma mark 拍场类型
typedef NS_ENUM(unsigned long, PPPaiDetailType) {
    //正常拍场（时间短）
    PPPaiDetailType_NormalPai,
    //商城拍场（时间长）
    PPPaiDetailType_MallPai,
    //一拍必得
    PPPaiDetailType_PaiMustGet,
};

#pragma mark 拍场类型
typedef NS_ENUM(unsigned long, PPPaiRecordDetailType) {
    //正常拍场记录（时间短）
    PPPaiRecordDetailType_NormalPai,
    //商城拍场记录（时间长）
    PPPaiRecordDetailType_MallPai,
};

typedef NS_ENUM(unsigned long, PPCouponType) {
    //不可使用的券
    PPCouponType_cantUse = 0,
    //可以使用的券
    PPCouponType_canUse = 1,
};

typedef NS_ENUM(unsigned long, PPActivityProgress) {
    //等待开始
    PPActivityProgress_waitStart     = 0,
    //进行中
    PPActivityProgress_processing    = 1,
    //已结束
    PPActivityProgress_over          = 2
};

typedef NS_ENUM(unsigned long, PP_PayForType) {
    //充值
    PP_PayType_ForRecharge    = 1,
    //订单支付
    PP_PayType_ForOrder       = 2,
    //预授权转支付
    PP_PayType_ForAuthPay     = 3
};

typedef NS_ENUM(unsigned long, PPGoodDetailItemType) {
    //banner
    PP_GoodDetail_BannerItem                = 0,
    //商品信息
    PP_GoodDetail_GoodInfoItem              = 1,
    //出价记录
    PP_GoodDetail_OfferRecordItem           = 2,
    //供应商信息
    PP_GoodDetail_SupplierInfoItem          = 3,
    //保障：如包邮、正品、安邦保险承保
    PP_GoodDetail_GuaranteeItem             = 4,

};

typedef NS_ENUM(unsigned long, PP_PaiSocketHeadType) {
    //商品信息
    PP_PaiSocketHeadType_GoodsInfo         = 0,
    //拍价信息
    PP_PaiSocketHeadType_PaiPrice          = 1
};

typedef NS_ENUM(unsigned long, PP_SocketMsgType) {
    //拍价信息
    PP_SocketMsgType_Pai         = 0,
    //没充钱去认证
    PP_SocketMsgType_Auth        = 1,
    //拍价到上线(限制)
    PP_SocketMsgType_PaiLimit    = 2
};

typedef NS_ENUM(unsigned long, PPAssetRelationType) {
    PPAssetRelationType_None             = 0,
    PPAssetRelationType_OrderPay         = 1,
    PPAssetRelationType_BankWithDraw     = 2,//银行卡提现
    PPAssetRelationType_AlipayRedrectPay = 3,//支付宝预授权转
    PPAssetRelationType_WeChatWithDraw   = 4,//微信零钱提现
    PPAssetRelationType_AliPayWithDraw   = 5,//支付宝提现
    
};

#endif /* enumConfig_h */
